﻿@model List<YuYuKiCms.Model.ThemeVm>
@{
    ViewBag.Title = "Theme";
}

<div class="art-content-layout">
    <div class="art-content-layout-row">
        <div class="art-layout-cell" style="width: 25%"></div>
        <div class="art-layout-cell" style="width: 50%">
            <table class="art-article">
                <thead>
                    <tr>
                        <th>
                            Selected
                        </th>
                        <th>
                            Name
                        </th>
                        <th>
                            PathView
                        </th>
                    </tr>
                </thead>

                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            <label class="art-radiobutton">
                                @Html.RadioButtonFor(m => item.IsSelected, item.Id, new {id = item.Id, onclick = "setTheme(" + item.Id + ");"})
                            </label>
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Name)
                        </td>
                        <td>
                            @Html.DisplayFor(m => item.PathView)
                        </td>
                    </tr>
                }

            </table>
        </div>
    </div>
</div>

@section Css{
}

@section Scripts{
    <script type="text/javascript">
        var setThemeUrl = "@Url.Action("SetTheme")";
    </script>
    <script type="text/javascript" src="~/Scripts/Theme/Theme.js"></script>
}